Sequential dynamical systems